package controllers.managers
{
	import event.LocationEvent;
	
	import flash.events.Event;

	public class EventFactory
	{
		public function EventFactory()
		{
		}
		
		public static function create(evt:Object):Event
		{
			var newEvent:Event = null;
			if(evt is LocationEvent)
			{
				newEvent = LocationEvent(evt);
			}
			else 
			{
				newEvent = Event(evt);
			}
			return newEvent;
		}
	}
}